package com.example.blackredtree;

public class Client {

    public static void main(String[] args) {
        RedBlackTree<Integer> tree = new RedBlackTree<>();
        int[] numbers = {20, 15, 25, 10, 5, 1, 30, 22, 17, 27};

        for (int number : numbers) {
            tree.insert(number);
        }

        tree.printTree();
        System.out.println("Search 15: " + tree.search(15));
        System.out.println("Search 99: " + tree.search(99));
    }

}
